package com.devilvan.betrice.jpxgmn.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devilvan.betrice.common.BasePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serial;
import java.io.Serializable;

/**
* @author Evad.Wu
* @Description JPXGMN-明细信息表 映射
* @date 2022-11-16
*/
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "JPXGMN_DETAIL")

@Entity
@Table(name = "JPXGMN_DETAIL")
@DynamicInsert
@EntityListeners(AuditingEntityListener.class)
@Schema(description = "JPXGMN-明细信息表 映射")
public class JpxgmnDetailPo extends BasePo implements Serializable {
    @Serial
    private static final long serialVersionUID = 5270265689813231978L;
    @Schema(description = "业务ID")
    @TableField(value = "PID")
    @Column(name = "PID", columnDefinition = "VARCHAR(128) NOT NULL COMMENT '业务ID'")
    private String pid;
    @Schema(description = "图片网址")
    @TableField(value = "PIC_URL")
    @Column(name = "PIC_URL", columnDefinition = "TEXT(65,535) NOT NULL COMMENT '图片网址'")
    private String picUrl;
    @Schema(description = "是否已下载")
    @TableField(value = "DOWNLOADED")
    @Column(name = "DOWNLOADED", columnDefinition = "NOT NULL DEFAULT '0' COMMENT '是否已下载'")
    private Boolean downloaded;
}
